package com.wsw.cxf.impl;

import javax.jws.WebService;
import com.wsw.cxf.IWebServiceTest;
/**
 * 客户端调用方法
 * 客户端接口包路径必须和本接口包路径相同
 *  JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
 *	factory.setAddress("http://localhost:8081/wssh2/ws/webServiceTest");
 *	factory.setServiceClass(com.wsw.cxf.IWebServiceTest.class);
 *	com.wsw.cxf.IWebServiceTest tt = (com.wsw.cxf.IWebServiceTest) factory
 *			.create();
 *	System.out.println(tt.helloWs("123"));
 * @author sw.wang
 *
 */
@WebService(endpointInterface = "com.wsw.cxf.IWebServiceTest", serviceName = "webServiceTest")
public class WebServiceTestImpl implements IWebServiceTest {

	@Override
	public String helloWs(String name) {
		String str = "hello[" + name.trim() + "]WebService test ok!`````";
		System.out.println(str);
		return str;
	}

	@Override
	public String hello() {
		String str = "wsw 您好!";
		System.out.println(str);
		return str;
	}

}
